# lambda函数，也就是js中的匿名函数
add = lambda x, y: x + y

sum = add(3, 4)
print(sum)


nums = [1, 2, 8, 63, 19]

new_sorted_nums = sorted(nums, reverse=True)
print(new_sorted_nums)


new_sorted_nums1 = [(lambda x: x * 2)(num) for num in nums if num % 2 == 0]


print(new_sorted_nums1)

names = ["linda", "susan", "jackie", "bob"]
